// The users module. If you do not need any specific features, you can
// leave it an empty object.
const data = {
  location: "relations",
  modal: {
    property: [
      {
        description: "",
        key: "name",
        name: "名称",
        type: "input",
        value: "",
        disabled: false,
        edit: true,
        save: true,
        requre: true
      },
      {
        description: "",
        key: "clazz",
        name: "等级",
        type: "select",
        value: "",
        disabled: false,
        edit: true,
        save: true,
        requre: true,
        options: [
          {
            value: 0,
            text: "根目录"
          },
          {
            value: 1,
            text: "二级目录"
          },
          {
            value: 2,
            text: "三级目录"
          }
        ]
      },
      {
        description: "",
        key: "parentId",
        name: "父主键",
        type: "input",
        value: "",
        disabled: false,
        edit: true,
        save: true,
        requre: true
      },
      {
        description: "",
        key: "description",
        name: "描述",
        type: "textarea",
        value: "",
        disabled: false,
        edit: true,
        save: true,
        requre: true
      },
      {
        description: "",
        key: "_links",
        name: "链接",
        type: "input",
        disabled: true,
        edit: false
      }
    ]
  },
  table: {
    fields: [
      { key: "associate", label: "选择" },
      {
        key: "key",
        label: "主键"
      },
      {
        key: "name",
        label: "名称"
      },
      {
        key: "clazz",
        label: "等级",
        sortable: true
      },
      {
        key: "parentId",
        label: "父主键"
      },
      {
        key: "operation",
        label: "操作",
        sortable: true
      }
    ]
  }
};
function match(key) {
  return data.property[key];
}

export default data;
// The posts module. You can add any additional things you want.
